package zhoug.map.http;

/**
 * @Author: zhoug
 * @Date: 2025-01-03
 * @Description:
 */
public class Optional<T> {
    private T data;

    public Optional(T data) {
        this.data = data;
    }

    public static <T> Optional<T> create(T data){
        return new Optional<>(data);
    }

    public T get(){
        return data;
    }
}
